<?php
namespace app\common\helper;
use think\Captcha;
use think\Config;

class VerifyHelper{
	
	/**
	 * 生成验证码
	 */
	public static function captcha($id = ""){
        $captcha = new Captcha((array)Config::get('captcha'));
        return $captcha->entry($id);
    }
    
    public static function check($code){
    	$captcha = new Captcha((array)Config::get('captcha'));
    	return $captcha->check($code);
    }
}
?>